package com.zsk.shop.model.results;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author ljh
 * @create 2021/11/17 16:45
 */
@Data
@ApiModel("商品分类树返回实体")
public class ShopGoodsCategoryTreeResult {

    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @ApiModelProperty(name = "categoryNo", value = "自己", dataType = "String")
    private String categoryNo;

    @ApiModelProperty(name = "partnerCategoryNo", value = "父级no,一级为''", dataType = "String")
    private String partnerCategoryNo;

    @ApiModelProperty(name = "level", value = "1及分类2级分类", dataType = "Integer")
    private Integer level;

    @ApiModelProperty(name = "categoryName", value = "分类名称", dataType = "String")
    private String categoryName;

    @ApiModelProperty(name = "categoryImg", value = "分类图片", dataType = "String")
    private String categoryImg;

    @ApiModelProperty(name = "goodsCount", value = "当前分类下商品数量", dataType = "Integer")
    private Integer goodsCount;

    @ApiModelProperty(name = "updateTime", value = "修改时间", dataType = "Date")
    private Date updateTime;

    @ApiModelProperty(name = "isShow", value = "启用禁用标识", dataType = "Boolean")
    private Boolean isShow;

    @ApiModelProperty(name = "sort", value = "权重", dataType = "Integer")
    private Integer sort;

    private List<ShopGoodsCategoryTreeResult> sonResults;
}
